package com.ganzalang.gmall.aoplog.controller;

import com.ganzalang.gmall.aoplog.dto.OrderLogParamsDO;
import com.ganzalang.gmall.aoplog.service.TestService;
import java.math.BigDecimal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author Ganzalang
 * @Date 2021/4/24 16:58
 **/
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/aop/log/test")
    public void test() {
        OrderLogParamsDO paramsDO = new OrderLogParamsDO();
        paramsDO.setId(1L);
        paramsDO.setUserId(1001L);
        paramsDO.setOrderNo("10011");
        paramsDO.setTotalPrice(new BigDecimal(100));
        testService.test(paramsDO);
    }

}
